package com.literature.search.core.entity.redis;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @ClassName HotWord
 * @Description TODO
 * @Author abin
 * @Date 2023/4/12 20:50
 * @Version 1.0
 */
@Document(value = "hot_word")
@Data
public class HotWord {

    @Id
    private String id;

    @Field(value = "word")
    private String word;

    @Field(value = "count")
    private Integer count;

    @Field(value = "date")
    private String date;
}
